const SERVICE = require("../../lib/js/service.js");

Page({
  onLoad(){
    
  },
  onShow(){
    this.getMyAccountInfo();
  },

  /*分享*/
  onShareAppMessage(){},

  /**
   * @explain getWithdrawInfo 获取提现信息
   * @param thirdCookie 用户标识
   * */ 
  getMyAccountInfo(){
    wx.showNavigationBarLoading();
    let _this = this;
    SERVICE.POST(SERVICE.URL.myAccountInfo,{
      thirdCookie: wx.getStorageSync("thirdCookie")
    },(status,res)=>{ 
      wx.hideNavigationBarLoading();
      console.log(res);
      if(res.data.status === "success"){
        _this.setData({
          info: res.data
        });
      }else{
        wx.showToast({
          title: "获取信息失败",
          icon: "none",
          mask: true
        });
      }
    });
  }
});